<template>
  <NConfigProvider :locale="zhCN" :date-locale="dateZhCN" :theme="theme">
    <NThemeEditor>
      <!-- <NCard>
        <NSpace>
          <NButton @click="theme = darkTheme">深色</NButton>
          <NButton @click="theme = null">浅色</NButton>
        </NSpace>
      </NCard> -->
      <RouterView />
    </NThemeEditor>
  </NConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { zhCN, dateZhCN, darkTheme } from 'naive-ui'
const theme = ref<typeof darkTheme | null>(null)
</script>

<style scoped></style>